#ifndef RECTANGLESHAPE_H
#define RECTANGLESHAPE_H

#include "Shape.h"
#include "../../common/Common.h"
#include <QOpenGLTexture>

class RectangleShape : public Shape {
public:
	RectangleShape(float x, float y, float z);
	~RectangleShape() {
	}

	void setSize(Vector size) {
		this->size->from(size);
	}

	Vector* getSize() {
		return size;
	}
	void init();


protected:
	Vector* size = new Vector();

private:

	void initFrontPoints();

	void initBackPoints();

	void initLeftPoints();

	void initRightPoints();

	void initTopPoints();

	void initBottomPoints();

	Point* frontPoints = nullptr;

	Point* backPoints = nullptr;

	Point* leftPoints = nullptr;

	Point* rightPoints = nullptr;

	Point* topPoints = nullptr;

	Point* bottomPoints = nullptr;
};
#endif
